package ch.ethz.group3.myalbum.client;

import com.smartgwt.client.types.Alignment;
import com.smartgwt.client.types.VerticalAlignment;
import com.smartgwt.client.widgets.Img;
import com.smartgwt.client.widgets.Window;

public class LoadingWindow extends Window {

	public LoadingWindow() {
		setWidth("200px");
		setHeight("300px");
	    setShowHeader(false);  
	    setShowEdges(false);
	 	setShowModalMask(true);
		setIsModal(true);
		setShowMinimizeButton(false);
		setShowResizer(false);
		setShowCloseButton(false);
		setCanDragReposition(false);
		setShowTitle(false);
		
		setShowDragPlaceHolder(false);
		setShowHover(false);
		setShowDragShadow(false);

		hideContextMenu();
		centerInPage();
		
		Img bookImage = new Img();
		bookImage.setPadding(20);
		bookImage.setSrc("285.gif");
		bookImage.setWidth("128px");
		bookImage.setHeight("128px");
		bookImage.setAlign(Alignment.CENTER);
		bookImage.setLayoutAlign(VerticalAlignment.CENTER);
	
		addItem(bookImage);
	}

}
